#
#	Makefile for config
#

@SET_MAKE@

SHELL = /bin/sh

include @common_makefile@


all: include/dcmtk/config/arith.h

install: install-doc

install-bin:

install-doc: docs-install

install-data:

install-etc:

install-include: include-install

install-lib: include-install

install-support:


libsrc-all:

tests-all: all


check: tests-all

check-exhaustive: tests-all


include-install:
	./mkinstalldirs $(DESTDIR)$(includedir)/dcmtk/config
	$(INSTALL_DATA) include/dcmtk/config/osconfig.h $(DESTDIR)$(includedir)/dcmtk/config
	$(INSTALL_DATA) include/dcmtk/config/arith.h $(DESTDIR)$(includedir)/dcmtk/config

docs-install:
	./mkinstalldirs $(DESTDIR)$(docdir)
	$(INSTALL_DATA) docs/config.txt $(DESTDIR)$(docdir)
	$(INSTALL_DATA) docs/envvars.txt $(DESTDIR)$(docdir)
	$(INSTALL_DATA) docs/modules.txt $(DESTDIR)$(docdir)
	$(INSTALL_DATA) docs/dirstruc.txt $(DESTDIR)$(docdir)
	$(INSTALL_DATA) docs/macros.txt $(DESTDIR)$(docdir)


clean:
	(cd include/dcmtk/config && rm -f $(TRASH))
	rm -rf $(TRASH)

distclean:
	(cd include/dcmtk/config && rm -f $(DISTTRASH) osconfig.h arith.h)
	rm -rf $(DISTTRASH) Makefile.def lzwtest.tif arith

include/dcmtk/config/arith.h: arith
	./arith $@

arith: tests/arith.cc
	$(CXX) $(CXXFLAGS) -Iinclude -I../ofstd/include -I../ofstd/libsrc -o$@ tests/$@.cc

dependencies: include/dcmtk/config/arith.h
